/**
 * Test file with commented objects and properties
 */

const usm = {
  'useSearch.find.pro.list': {
    url: '/subject/list',
    mockFn: () => {
      // return {
      //   "code": 0,
      //   "msg": "",
      //   "pageNo": 1,
      //   "pageSize": 5,
      //   "total": 20,
      //   "data":generateUserList(20)
      // }
      // return generateUserList(20);
    },
  },
};

const sm = {
  'sm.find.pro.list': '/subject/list',
  'sm.command.edit': '/subject/edit',
  // 'sm.command.commented.item': '/subject/commented', // This should be excluded
  'sm.command.del.smitem': '/subject/delete/:subjectId',
  'sm.command.merge': '/subject/merge',
  'sm.find.treeById': '/subject/series/list/:subjectId',
  // 'sm.another.commented': '/another/commented', // This should be excluded  
  'sm.command.edit.tree.algType': '/subject/series/edit',
  'sm.command.list.total': '/subject/total',
  'sm.command.del.series': 'subject/series/delete',
};

/* 
// This entire object should be excluded due to block comment
const commentedObject = {
  'commented.api.endpoint': '/commented/api',
  'another.commented.endpoint': '/another/commented'
};
*/

const file = {
  'file.find.pro.hList': '/file/history/list',
  'file.command.add.upload': '/file/shard/upload',
  // 'file.commented.property': '/file/commented', // This should be excluded
  'file.command.del.allItem': '/file/history/clean',
  'file.command.del.item': '/file/history/delete/:id',
  'file.find.item.status': '/file/shard/upload/status',
  'file.command.download.subResultItem': '/file/download/patient',
  'file.command.download.taskItemResult': '/file/download/output/sub',
  'file.command.download.analysisSub': '/file/download/output/sub/zip/:analysisSubId',
  'file.command.download.taskAllResult': '/file/download/output/all/:analysisId',
};

// Commented object - this entire object should be excluded
// const disabledFeature = {
//   'disabled.feature.api': '/disabled/feature',
//   'disabled.another.api': '/disabled/another'
// };

const project = {
  'project.find.pro.list': '/project/list',
  // 'project.find.pro.list': {
  //   url: '/project/list',
  //   mockFn: () => {
  //     return [{ projectName: '假数据测试-mockFn', groupNameList: ['tag-a'] }];
  //   },
  // },
  'project.command.add': '/project/add',
  'project.command.edit': '/project/edit',
  'project.command.del': '/project/delete/:id',
  // 'project.disabled.endpoint': '/project/disabled', // This should be excluded
  'project.find.pro.subjectList': '/project/list/subject',
  'project.command.del.subject': '/project/delete/subject/:groupId',
};

const user = {
  'user.find.pro.list': '/account/list',
  'user.command.add': '/account/add',
  'user.command.edit': '/account/edit', // 编辑、删除、禁用/启用
  // 'user.commented.action': '/account/commented', // This should be excluded
};

const notification = {
  'notification.find.pro.list': '/notification/list',
  'notification.find.unread.count': '/notification/unread/count',
  'notification.command.setItemsRead': '/notification/edit/read',
  'notification.command.setAllRead': '/notification/clean',
  // 'notification.disabled.feature': '/notification/disabled', // This should be excluded
  'notification.command.readAll': 'notification/read/all',
};

export default {
  ...usm,
  ...sm,
  ...file,
  ...project,
  ...user,
  ...notification,
};